package com.vogue.supplymall.order.domain.service.impl;

import com.vogue.ssm.database.dao.BaseDao;
import com.vogue.supplymall.order.domain.dao.FulfillmentDao;
import com.vogue.supplymall.order.domain.model.Fulfillment;
import com.vogue.supplymall.order.domain.service.FulfillmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * The type Fulfillment service.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-02-05
 */
@Service("fulfillmentService")
public class FulfillmentServiceImpl extends BaseServiceImpl<Fulfillment, Long> implements FulfillmentService {
    @Resource
    private FulfillmentDao fulfillmentDao;

    /**
     * Instantiates a new Fulfillment service.
     *
     * @param baseDao the base dao
     */
    public FulfillmentServiceImpl(BaseDao<Fulfillment, Long> baseDao) {
        super(baseDao);
    }

    @Override
    public Integer getFulfillmentForRefund(Long refundId) {
        return fulfillmentDao.getFulfillmentForRefund(refundId);
    }
}
